/*
* $Id: Result.cpp 2 2009-12-23 13:58:02Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Aleksey
* All rights reserved
*
*/
#include "Common/include.h"
#include "Result.h"

CResult::CResult(const std::vector<IOperation::i_content*>& aContent){
	m_aContent = aContent;
}
CResult::~CResult(){
	ClearResult();
}

size_t CResult::GetSizeResult(){
	return m_aContent.size();
}
IOperation::i_content* CResult::operator[](int nPos){
	return m_aContent[nPos];
}
void CResult::ClearResult(){
	for(std::vector<IOperation::i_content*>::iterator it = m_aContent.begin(); it != m_aContent.end(); it++)
		(*it)->Free();
	m_aContent.clear();
}
void CResult::Free(){
	delete this;
}